#! /usr/bin/env python
# -*- coding: utf-8 -*-

# Copyright (c) JoinQuant Development Team
# Author: Huayong Kuang <kuanghuayong@joinquant.com>

import gevent
from flask import Flask
from gevent.pywsgi import WSGIServer

app = Flask(__name__)

@app.route("/")
def index():
    return "hello world!"

https_server1 = WSGIServer(("127.0.0.1", 8081), app)
https_server1.start()

http_server = WSGIServer(("127.0.0.1", 8082), app)
http_server.start()

while True:
    gevent.sleep(60)
